home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / wlib11_2.zip / EXAMPLES.EXE / EXAM73.C < prev    next >
C/C++ Source or Header  |  1991-03-13  |  540b  |  19 lines

  1.   #include "window.h"
  2.   #define NORM   CREATE_VIDEO_ATTRIBUTE(black,white)
  3.  
  4.   VWPOINTER vw;
  5.   WPOINTER w;
  6.  
  7.   main()
  8.   {
  9.     WindowInitializeSystem();
  10.     WindowSaveInitial(0);
  11.     w = WindowInitialize(BORDER,1,1,20,10,NORM,NORM,SINGLEBOX);
  12.     vw = VirtualInitialize(NOATTRIBUTE,30,80,0);
  13.     WindowOpen(w);
  14.     WindowDisplay(w,1,NOEFFECT);
  15.     VirtualWriteRepeatCharacter(vw,'a',1,1,5);
  16.     VirtualWriteRepeatCharacter(vw,'b',2,1,5);
  17.     VirtualWriteRepeatCharacter(vw,'c',3,1,5);
  18.     WindowAssignToVirtual(w,vw,1,1);
  19.   }